package com.iflytek.cosmo.ocr.common.config;

import java.util.Map;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * Uap属性
 * @author yunsun
 *
 */
@Configuration
@ConfigurationProperties(prefix = "uap")
public class UapProperties {

	/**
	 * uap服务地址
	 */
	private String serverUrl;

	/**
	 * uap用户单位id
	 */
	private String userOrgId;

	/**
	 * uap用户单位名称
	 */
	private String userOrgName;

	/**
	 * uap用户默认密码
	 */
	private String userDefaultPwd;

	/**
	 * uap助手应用编码
	 */
	private String appCode;

	/**
	 * uap用户角色
	 */
	private String userRole;

	/**
	 * uap游客角色
	 */
	private String visitorRole;

	/**
	 * 默认权限组编码
	 */
	private String groupCode;

	/**
	 * 密码策略
	 */
	private Map<String, Object> pwdStrategy;

	/**
	 * @return the serverUrl
	 */
	public String getServerUrl() {
		return serverUrl;
	}

	/**
	 * @param serverUrl the serverUrl to set
	 */
	public void setServerUrl(String serverUrl) {
		this.serverUrl = serverUrl;
	}

	/**
	 * @return the userOrgId
	 */
	public String getUserOrgId() {
		return userOrgId;
	}

	/**
	 * @param userOrgId the userOrgId to set
	 */
	public void setUserOrgId(String userOrgId) {
		this.userOrgId = userOrgId;
	}

	/**
	 * @return the userOrgName
	 */
	public String getUserOrgName() {
		return userOrgName;
	}

	/**
	 * @param userOrgName the userOrgName to set
	 */
	public void setUserOrgName(String userOrgName) {
		this.userOrgName = userOrgName;
	}

	/**
	 * @return the userDefaultPwd
	 */
	public String getUserDefaultPwd() {
		return userDefaultPwd;
	}

	/**
	 * @param userDefaultPwd the userDefaultPwd to set
	 */
	public void setUserDefaultPwd(String userDefaultPwd) {
		this.userDefaultPwd = userDefaultPwd;
	}

	/**
	 * @return the appCode
	 */
	public String getAppCode() {
		return appCode;
	}

	/**
	 * @param appCode the appCode to set
	 */
	public void setAppCode(String appCode) {
		this.appCode = appCode;
	}

	/**
	 * @return the userRole
	 */
	public String getUserRole() {
		return userRole;
	}

	/**
	 * @param userRole the userRole to set
	 */
	public void setUserRole(String userRole) {
		this.userRole = userRole;
	}

	/**
	 * @return the visitorRole
	 */
	public String getVisitorRole() {
		return visitorRole;
	}

	/**
	 * @param visitorRole the visitorRole to set
	 */
	public void setVisitorRole(String visitorRole) {
		this.visitorRole = visitorRole;
	}

	/**
	 * @return the groupCode
	 */
	public String getGroupCode() {
		return groupCode;
	}

	/**
	 * @param groupCode the groupCode to set
	 */
	public void setGroupCode(String groupCode) {
		this.groupCode = groupCode;
	}

	/**
	 * @return the pwdStrategy
	 */
	public Map<String, Object> getPwdStrategy() {
		return pwdStrategy;
	}

	/**
	 * @param pwdStrategy the pwdStrategy to set
	 */
	public void setPwdStrategy(Map<String, Object> pwdStrategy) {
		this.pwdStrategy = pwdStrategy;
	}
}
